package org.example.studentsystem_back.vo.leaderMangeVo;

import lombok.Data;
import org.example.studentsystem_back.domain.Leaders;
import org.example.studentsystem_back.domain.Users;

@Data
public class LeaderVo extends Leaders {
    private String name;
    private String gender;
    private int role;

    public void setUser(Users users)
    {
        this.name = users.getName();
        this.gender = users.getGender();
        this.role = users.getRole();
    }

    public void setLeader(Leaders leaders)
    {
        this.setDepartment(leaders.getDepartment());
        this.setEmployeeId(leaders.getEmployeeId());
        this.setHireDate(leaders.getHireDate());
        this.setOffice(leaders.getOffice());
        this.setTitle(leaders.getTitle());
        this.setUserid(leaders.getUserid());
        this.setPosition(leaders.getPosition());
        this.setPhone(leaders.getPhone());
    }


}
